.class Lcom/xingbook/park/ui/c;
.super Landroid/os/Handler;


# static fields
.field public static a:I

.field private static final e:[I


# instance fields
.field private b:I

.field private c:Z

.field private d:Ljava/lang/ref/WeakReference;

.field private f:I


# direct methods
.method static constructor <clinit>()V
    .locals 1

    const/16 v0, 0x12c

    sput v0, Lcom/xingbook/park/ui/c;->a:I

    const/4 v0, 0x3

    new-array v0, v0, [I

    fill-array-data v0, :array_0

    sput-object v0, Lcom/xingbook/park/ui/c;->e:[I

    return-void

    nop

    :array_0
    .array-data 0x4
        0x94t 0x1t 0x2t 0x7ft
        0x95t 0x1t 0x2t 0x7ft
        0x96t 0x1t 0x2t 0x7ft
    .end array-data
.end method

.method public constructor <init>(Landroid/widget/ImageView;)V
    .locals 1

    const/4 v0, 0x0

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    iput v0, p0, Lcom/xingbook/park/ui/c;->b:I

    iput-boolean v0, p0, Lcom/xingbook/park/ui/c;->c:Z

    sget-object v0, Lcom/xingbook/park/ui/c;->e:[I

    array-length v0, v0

    iput v0, p0, Lcom/xingbook/park/ui/c;->f:I

    new-instance v0, Ljava/lang/ref/WeakReference;

    invoke-direct {v0, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V

    iput-object v0, p0, Lcom/xingbook/park/ui/c;->d:Ljava/lang/ref/WeakReference;

    return-void
.end method


# virtual methods
.method public a(Z)V
    .locals 3

    const/4 v2, 0x0

    iget-boolean v0, p0, Lcom/xingbook/park/ui/c;->c:Z

    if-ne v0, p1, :cond_0

    :goto_0
    return-void

    :cond_0
    iput-boolean p1, p0, Lcom/xingbook/park/ui/c;->c:Z

    if-eqz p1, :cond_1

    sget v0, Lcom/xingbook/park/ui/c;->a:I

    int-to-long v0, v0

    invoke-virtual {p0, v2, v0, v1}, Lcom/xingbook/park/ui/c;->sendEmptyMessageDelayed(IJ)Z

    goto :goto_0

    :cond_1
    invoke-virtual {p0, v2}, Lcom/xingbook/park/ui/c;->removeMessages(I)V

    goto :goto_0
.end method

.method public handleMessage(Landroid/os/Message;)V
    .locals 3

    iget-object v0, p0, Lcom/xingbook/park/ui/c;->d:Ljava/lang/ref/WeakReference;

    invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    if-nez v0, :cond_0

    :goto_0
    return-void

    :cond_0
    iget v1, p0, Lcom/xingbook/park/ui/c;->b:I

    add-int/lit8 v1, v1, 0x1

    iget v2, p0, Lcom/xingbook/park/ui/c;->f:I

    rem-int/2addr v1, v2

    iput v1, p0, Lcom/xingbook/park/ui/c;->b:I

    sget-object v1, Lcom/xingbook/park/ui/c;->e:[I

    iget v2, p0, Lcom/xingbook/park/ui/c;->b:I

    aget v1, v1, v2

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageResource(I)V

    iget-boolean v0, p0, Lcom/xingbook/park/ui/c;->c:Z

    if-eqz v0, :cond_1

    const/4 v0, 0x0

    sget v1, Lcom/xingbook/park/ui/c;->a:I

    int-to-long v1, v1

    invoke-virtual {p0, v0, v1, v2}, Lcom/xingbook/park/ui/c;->sendEmptyMessageDelayed(IJ)Z

    :cond_1
    invoke-super {p0, p1}, Landroid/os/Handler;->handleMessage(Landroid/os/Message;)V

    goto :goto_0
.end method
